/**
 * https://github.com/iview/iview/blob/2.0/src/styles/custom.less 参考
 * 重命名覆盖原有色系变量
 */

@import '~iview/src/styles/index.less';

//变量覆盖
@primary-color: #5158d4;
@link-color: #5158d4;

//chrome
input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  border: 1px solid #ccc !important;
  background-color: rgba(0,0,0,0) !important;
}

/********************* 菜单调整样式 *******************/
.ivu-menu {
  font-size:13px !important;
}

.ivu-menu-item {
   font-size: 13px !important;
}

.ivu-layout-sider {
  background: #333964 !important;
}

.ivu-menu-dark {
    background: #333964 !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened {
  background: #272c4f !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-opened .ivu-menu-submenu-title {
  background: #20254a !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item:hover, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover {
    background: #20254a !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu), .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title-active:not(.ivu-menu-submenu) {
  color: #fff;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu), .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title-active:not(.ivu-menu-submenu), .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu):hover, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title-active:not(.ivu-menu-submenu):hover {
  background: #20254a !important;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item-active:hover {
  background: #5158d4 !important;
  color: #fff;
}

/********************* 菜单调整样式 *******************/



/*******************全局样式*******************/
.size {
  width: 100%;
  height: 100%;
}

.no-select { 
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /*
  -webkit-user-select: none;
  user-select: none;
  */
}

html,
body {
  .size;
  .no-select;
  overflow: hidden;
  margin: 0;
  padding: 0;
  min-width: 800px;
}

@media print {

  html,body {
    height:auto;
    overflow:auto;
  }


  body {
    width:1100px
  }

  table {
    width:auto !important;
  }
  
  .print-no-show {
    display:none
  }

  .print-no-height {
    height:0;
  }
  
  .ivu-card-head {
    display:none;
  }

  .ivu-card-extra {
    display:none;
  }

  .ivu-card:hover {
    box-shadow:none;
  }

  .ivu-card-bordered {
    border: 0px solid #dcdee2 !important;
  }

  .ivu-table-wrapper {
    border: 1px solid #dcdee2 !important;
  }

  .ivu-table:before {
    height: 0px !important;
  }

  .ivu-table:after {
    width: 1px !important;
  }

  .ivu-table-column-center {
    border-bottom: 1px solid #e8eaec !important;
  }
  
}

.app {
  .size;
  .no-select;
  
  //select 选择框
	.select {
    width:180px;	    
  }
  
  //编辑框
  .editForm {
    width:400px;
    .button {
      margin-left: 50px;
      width:100px;
    }
  }
  
  //详情
  .details-title {
    height: 30px;
    line-height: 30px;
    font-size:14px;
    span {
      font-weight: 600;
      display: inline-block;
      width: 100px;
    }
  }

  .td-click {
    cursor: pointer;
    color:#5158d4;;
  }
}




